package com.bailiban.aigou.admin.common;


import org.apache.commons.lang3.StringUtils;
import com.opensymphony.xwork2.ActionSupport;

public class BaseAction extends ActionSupport{
	
	
  
	private static final long serialVersionUID = 1L;

    private int pageNo = 1;
	
	private int pageSize = 10;

	public int getPageNo() {
		return pageNo;
	}

	public void setPageNo(String pageNo) {
		if (StringUtils.isEmpty(pageNo)) {
			pageNo = "1";
		}
		this.pageNo = Integer.parseInt(pageNo);
	}

	public int getPageSize() {
		return pageSize;
	}

	public void setPageSize(String pageSize) {
		if (StringUtils.isEmpty(pageSize)) {
			pageSize = "10";
		}
		this.pageSize = Integer.parseInt(pageSize);
	}
}
